package com.colin.aiyi.presenter.Imp_de;

import com.colin.aiyi.dao.ImpxUtils3_de.IService;
import com.colin.aiyi.dao.ImpxUtils3_de.ImpRegister;
import com.colin.aiyi.entity.response.BaseResponse;
import com.colin.aiyi.presenter.Interface_Derecated.AbsPresenter;

/**
 * Created by hl on 2017/6/5.
 */
@Deprecated
public class ImpPRegister extends AbsPresenter<BaseResponse> {
    IService<BaseResponse> iService=new ImpRegister();
    int msgtype=1;
    @Override
    public void onSuccess(Object t) {
        if (t instanceof BaseResponse)
        {
          ((BaseResponse) t).setMsgType(msgtype);
            sendMsgToView(t);
        }
    }



        /*注册*/
    @Override
    public void getAllT(String... type) {
        super.getAllT(type);
        msgtype=1;
        iService.getAllT(this,type);
    }

   /* /发送验证吗*/
    @Override
    public void getTById(String id) {
        super.getTById(id);
        msgtype=2;
        iService.getTById(this,id);
    }
}
